﻿using System;
using Utilities;
using SocialShare.BusinessLogicLayer;

namespace SocialShare.BusinessEntities
{
    public partial class Message
    {
        public Nullable<global::System.Int32> ParentPostId
        {
            get;
            set;
        }
        public global::System.Int32 PostId
        {
            get;
            set;
        }
        public global::System.Int32 Status
        {
            get;
            set;
        }

        public global::System.String UserId
        {
            get;
            set;
        }

       
        public global::System.DateTime CreateDate
        {
            get;
            set;
        }

        public global::System.String MessageBody
        {
            get;
            set;
        }

        public global::System.String MessageSubject
        {
            get;
            set;
        }

        public Nullable<global::System.Int32> CategoryId
        {
            get;
            set;
        }

        public global::System.String CategoryName
        {
            get;
            set;
        }

        public global::System.Int32 TotalReply
        {
            get;
            set;
        }

        public global::System.String StatusIcon
        {
            get
            {
                ForumStatus fStatus = (ForumStatus)Enum.Parse(typeof(ForumStatus), this.Status.ToString());

                return SiteSettings.BaseUrl + "App_Style/Images/" + @"ico-" + fStatus.ToString() + ".png";
            }
            
        }

        public global::System.String StatusName
        {
            get
            {
                ForumStatus fStatus = (ForumStatus)Enum.Parse(typeof(ForumStatus), this.Status.ToString());

                return fStatus.ToString();
            }

        }

    }
}
